package com.jlkf.dao;

import java.util.List;
import java.util.Map;

import com.jlkf.pojo.TblUser;

public interface TblUserMapper {
    int deleteByPrimaryKey(Long gId);

    int insert(TblUser record);

    int insertSelective(TblUser record);

    TblUser selectByPrimaryKey(Long gId);

    int updateByPrimaryKeySelective(TblUser record);

    int updateByPrimaryKey(TblUser record);

	TblUser loginUser(Map<String, Object> map);

	TblUser getPhoneUserInfo(Map<String, Object> map);

	int updatePassWord(TblUser record);

	TblUser selectByPrimaryKeys(Long gId);
	
	//修改余额
	int updateBalance(Map<String, Object> map);
	
	//根据手机号修改支付密码
	int updatePayPassWord(TblUser record);
	
	//修改最近登录时间
	int updateLoginTime(Long gId);
	
	//1.解封   2.封号
	int updateStatus(Map<String, Object> map);
	
	//后台用户列表
	List<TblUser> getUserInfo(Map<String, Object> map);
	
	//会员列表
	List<TblUser> getVipUserInfo(Map<String, Object> map);
	
	//非会员列表
	List<TblUser> getIsNotVip();
	
	/**
	 * 更新用户mac地址
	 */
	int updateMac(Map<String,Object> map);
	//查看用户信息
	Map<String,Object> selectUserInfo(Integer userid);
}